//
//  DetailViewController.h
//  KeYin
//
//  Created by Sean Chen on 5/26/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface DetailViewController : UIViewController <UIGestureRecognizerDelegate> {
    BOOL _isFullScreen;
    
    NSDictionary *periodical;
    NSUInteger page;
    
    UIWebView *detailWebView;
    UIToolbar *detailToolbar;
}

@property (nonatomic, retain) NSDictionary *periodical;
@property (nonatomic, assign) NSUInteger page;
@property (nonatomic, retain) IBOutlet UIWebView *detailWebView;
@property (nonatomic, retain) IBOutlet UIToolbar *detailToolbar;

- (id)initWithPeriodical:(NSDictionary *)dict;

- (void)reloadWebView;

- (IBAction)pressPrevButton:(id)sender;
- (IBAction)pressNextButton:(id)sender;

- (void)handleTapFrom:(UITapGestureRecognizer *)recognizer;
- (void)handleSwipeFrom:(UISwipeGestureRecognizer *)recognizer;

@end
